package parkshop.pmcourse.mapping;

import java.util.List;

import parkshop.pmcourse.domain.FavoriteProduct;
import parkshop.pmcourse.dto.PageBean;

public interface FavoriteProductMapper {

	FavoriteProduct selectByPrimaryKey(Long id);
	int deleteByPrimaryKey(Long id);
	int insertSelective(FavoriteProduct favoriteProduct);
	int updateByPrimaryKeySelective(FavoriteProduct favoriteProduct);
	List<FavoriteProduct> selectPageByCustomerId(PageBean pageBean);
	List<FavoriteProduct> selectByCustomerId(Long id);
	int selectCountByCustomerId(Long id);

	int deleteByCustomerAndProductId(PageBean pageBean);
}
